package com.flyqiu.flow.event;


import com.flyqiu.flow.bpmn.element.BaseProcElement;
import com.flyqiu.flow.bpmn.element.IProcElement;
import com.flyqiu.flow.model.entity.base.FlowBaseDao;

public interface FlyQiuFlowElementEventContext<E extends IProcElement, I extends FlowBaseDao> extends ProcInstEventContext {


    /**
     * 当前事件触发的元素
     *
     * @return {@link BaseProcElement }
     */
    E getEventElement();

    /**
     * 获取运行时元素对应的实例
     *
     * @return {@link FlowBaseDao}
     */
    I getElementInstance();


}


